﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Windows;
using System.Data;

namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for ProductionOrder.xaml
    /// </summary>
    public partial class ITXPDCCS : PDCBase
    {
     
        public ITXPDCCS()
        {
            InitializeComponent(); 
        } 
        /// <summary>
        /// SetProd 当前订单
        /// SetData保存所有订单，但是用于展示今日订单
        /// SetEnv保存所有订单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (DesignerProperties.GetIsInDesignMode(this))
                    return;
                base.Window_Loaded(sender, e);
               
                if (app.User.Trim() == "ITXV")
                {
                    ABFSTEP = "XS000138001010";
                    txtKRS.Text = "XS";
                    txtLFD.Text = "000138";
                    SPINLOT = "H140201449";
                    txtDateS.Text = MainViewModel.date;
                    txtDateE.Text = MainViewModel.date;
                } 
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
                MessageBox.Show(ex.StackTrace, ex.Message);
            }
        } 
      
    }
}
